import request from "@/utils/request";

export const addApartmentDetail = async data => {
  return request({
    url: "/business/apartment-details/add",
    method: "post",
    data
  });
};
export const editApartmentDetail = async data => {
  return request({
    url: "/business/apartment-details/modify",
    method: "post",
    data
  });
};
export const addApartment = async data => {
  return request({
    url: "/business/apartment-info/add",
    method: "post",
    data
  });
};
export const editApartment = async data => {
  return request({
    url: "/business/apartment-info/modify",
    method: "post",
    data
  });
};
export const setFeeStandard = async data => {
  return request({
    url: "/business/apartment-info/charge/saveOrUpdate",
    method: "post",
    data
  });
};
export const getAllFeeStandard = async data => {
  return request({
    url: "/business/apartment-info/charge/loadAllByMaster",
    method: "get",
    params: data
  });
};
export const deleteFeeStandard = async data => {
  return request({
    url: "/business/apartment-info/charge/delete",
    method: "get",
    params: data
  });
};
export const getAllApartmentDetail = async data => {
  return await request({
    url: "/business/apartment-details/loadAllByQuery",
    method: "post",
    data
  });
};
export const deleteApartmentDetail = async data => {
  return await request({
    url: "/business/apartment-details/delete",
    method: "get",
    params: data
  });
};
export const getAllApartment = async data => {
  return await request({
    url: "/business/apartment-info/loadAllByQuery",
    method: "post",
    data
  });
};
export const deleteApartment = async data => {
  return await request({
    url: "/business/apartment-info/delete",
    method: "get",
    params: data
  });
};
